import { ContentTypeEnum, RequestHttpEnum } from '@/config/httpEnum'
import axiosInstance from '../axios'

// common服务
export class mockService {
  // 登陆接口
  static loagin(data?: object, headersType?: string) {
    return axiosInstance({
      url: '/mock/login',
      method: RequestHttpEnum.POST,
      data: data,
      headers: {
        'Content-Type': headersType || ContentTypeEnum.JSON
      }
    })
  }
}
